/**
 * API接口配置文件
 */
import HttpCache from '@/common/cache'
import store from '@/store'
import Vue from 'vue'
// let token = store.state.token
let token = HttpCache.get("token")||Vue.prototype.$token
console.log(store.state.token)
module.exports = {
	home : {
		getProductIdByTagId:"/client/Products/getProductIdByTagId?size=M&terminaltype=Mobile&tagId=1521229690507520", // 今日优选 
		getProductIdByTagId2:"/client/Products/getProductIdByTagId?size=M&terminaltype=Mobile&tagId=1674243972485376", // 新鲜好物 
		getProductIdByTagId3:"/client/Products/getProductIdByTagId?size=M&terminaltype=Mobile&tagId=1674243099218176", // TOP单品 
		getProductIdByTagId4:"/client/Products/getProductIdByTagId?size=M&terminaltype=Mobile&tagId=1674244632400128", // 即将上线 
		getProductIdByTagIds:"/client/Products/getProductIdByTagId?size=M&terminaltype=Mobile", // 根据标签查商品 
		getRecommendCartList:"/client/Products/getRecommendCartList?size=M&terminaltype=Mobile", // 猜你喜欢 
		getShopsByCondition:"/client/Shops/getShopsByCondition?size=M&terminaltype=Mobile", // 店铺列表 
		banner:"/api/index/banner",
		getPricePreferentialList:"/api/PricePreferentialService/getPricePreferentialList?size=M&terminaltype=Mobile", //  活动列表
		preferentialAds:"/api/admin/preferentialAds", //  活动装饰
		getTopList:"/api/user/getTopList", //  top图片
		getCollectedBrand:"/api/brand/getCollectedBrand", //  top图片
		getEInvoice:"/client/EInvoices/getEInvoice?size=M&terminaltype=Mobile", //  获取发票
		getProductMainTopList:"/client/Orders/getProductMainTopList?size=M&terminaltype=Mobile", //  销售排行
		getTag:"/api/index/getTag", //  标签列表
		bandGoods:"/api/brand/goods", //  标签列表
		sales:"/api/index/sales", //  top排行
		shopmenu:"/api/index/shop_menu", //  店铺导航
		shopstyle:"/api/index/shop_style", //  设计风格
		shopindex:"/api/index/shop_index", //  店铺首页位置排序
		query:"/api/score/uApi/action?action="+encodeURIComponent('mm/coupon/query'), //  优惠券档案查询
		mycoupon:"/api/score/uApi/action?action="+encodeURIComponent('mm/coupon/mycoupon'), //  优惠券查询
		receive:"/api/score/uApi/action?action="+encodeURIComponent('mm/coupon/receive'), //  优惠券领取
		shopCategory:"/api/index/shopCategory", //  商品分类
		shopdetail:"/api/index/shop_detail", //  店铺详情
		shopActive:"/api/index/shopActive", //  店铺活动
		shopHotGoods:"/api/index/shopHotGoods", //  店铺热销
		shopNewGoods:"/api/index/shopNewGoods", //  店铺新品
		getEMSList: "/client/ShoppingCarts/getEMSList", // 获取商品配送方式
		getFavoriteCount:'/client/ShopFavorites/getFavoriteCount?size=M&terminaltype=Mobile'
	},
	common:{
		couponlist:"/index/couponlist?size=M&terminaltype=Mobile", // 公共加载商品
		config:"/config/getinfo?size=M&terminaltype=Mobile", // 获取服务端配置
		update:"/config/update?size=M&terminaltype=Mobile", // 检测更新 
	},
	goods:{

		iteminfo:"/client/Products/index?size=M&terminaltype=Mobile", // 商品详情 加载 
		Comments:"/member/Comments/query?size=M&terminaltype=Mobile", // 评论
		addProductFavorite:"/client/ProductFavorites/addProductFavorite?size=M&terminaltype=Mobile", // 收藏
		addShopFavorit:"/client/ShopFavorites/addShopFavorite?size=M&terminaltype=Mobile", //店铺 收藏
		delFavoritesByProductId:"/client/ProductFavorites/delFavoritesByProductId?size=M&terminaltype=Mobile", // 取消收藏
		delFavorites:"/client/ShopFavorites/delFavorites?size=M&terminaltype=Mobile", // 店铺取消收藏
		getFavoriteCount:"/client/ShopFavorites/getFavoriteCount?size=M&terminaltype=Mobile", // 获取店铺收藏人数
		getShopFavorites:"/client/ShopFavorites/getShopFavorites?size=M&terminaltype=Mobile", //我的收藏列表
		addCarts:"/client/ShoppingCarts/addCarts?size=M&terminaltype=Mobile", // 加入购物车
		orderNow:"/client/ShoppingCarts/orderNow?size=M&terminaltype=Mobile", // 结算前加入购物车(详情立即购买),
		getRelatedProductList:"/promotion/CombinationSalesService/getRelatedProductList?size=M&terminaltype=Mobile",
		getRecommendedProducts:"/client/Products/getRecommendedProducts?size=M&terminaltype=Mobile", // 推荐商品
		goodsBrand:"/api/brand/goodsBrand?size=M&terminaltype=Mobile" ,// 搜索品牌
		getFixedSetMenuList:"/promotion/CombinationSalesService/getFixedSetMenuList?size=M&terminaltype=Mobile", // 获取固定套餐
		getProductItems:"/promotion/CombinationSalesService/getProductItems?size=M&terminaltype=Mobile", // 根据id获取固定套餐
		getCombinSaleList:"/promotion/CombinationSalesService/getCombinSaleList?size=M&terminaltype=Mobile", // 获取搭配套餐
		
	},
	car:{
		list:"/client/ShoppingCarts/getCartList?size=M&terminaltype=Mobile", //购物车列表
		update:"/client/ShoppingCarts/update?size=M&terminaltype=Mobile", //更新购物车
		GenerateOrderByShoppingCart:"/client/Orders/GenerateOrderByShoppingCart?size=M&terminaltype=Mobile", //结算
		del:"/client/ShoppingCarts/del?size=M&terminaltype=Mobile" //删除购物车
	},
	order:{
		getNewOrder:'/client/Orders/getNewOrder?size=M&terminaltype=Mobile',//订单信息
		submitOrder:'/client/Orders/submitOrder?size=M&terminaltype=Mobile',//提交订单
		getEnablePayTypeList:'/client/Pays/getEnablePayTypeList?size=M&terminaltype=Mobile',//获取支付方式
		buildPayment:'/client/Pay/buildPayment?size=M&terminaltype=Mobile',//支付
		getPostActivityList:'/promotion/PostActivityService/getPostActivityList?size=M&terminaltype=Mobile',//运费信息
		getAvailableCoupon:'/coupon/MemberCouponServer/getAvailableCoupon?size=M&terminaltype=Mobile',//优惠券
		getStoreList:'/client/orders/getStoreList?size=M&terminaltype=Mobile',//获取门店列表
		getContactWays:'/client/Corprations/getContactWays?size=M&terminaltype=Mobile',//获取客服列表
		getReturnDetail:'/client/Orders/getReturnDetail?size=M&terminaltype=Mobile',//获取退款前详情
		getSaleReturnBySaleReturnNo:'/client/SaleReturns/getSaleReturnBySaleReturnNo?size=M&terminaltype=Mobile',//根据退款列表获取退款详情
		getSaleReturnByDetailId:'/client/SaleReturns/getSaleReturnByDetailId?size=M&terminaltype=Mobile',//根据订单行获取退款详情
		cancelSaleReturn:'/client/SaleReturns/cancelSaleReturn?size=M&terminaltype=Mobile',//取消退款
		update:'/client/SaleReturns/update?size=M&terminaltype=Mobile',//修改退款详情
		
	},
	address:{
		list:"/member/Members/getMemberAddress?size=M&terminaltype=Mobile", //收货地址列表
		getProvinces:"/client/Regions/getProvinces?size=M&terminaltype=Mobile", //省
		getCitysFromProvince:"/client/Regions/getCitysFromProvince?size=M&terminaltype=Mobile", //市
		getDistrictFromCity:"/client/Regions/getDistrictFromCity?size=M&terminaltype=Mobile", //区
		saveMemberAddress:"/member/Members/saveMemberAddress?size=M&terminaltype=Mobile" //保存/修改地址
	},
	login:{
		logininfo:'/client/MemberLogin/authenticate?size=M&terminaltype=Mobile',
		register:'/member/Register/signUP_getAuthCode?size=M&terminaltype=Mobile',
		reg:'/member/Register/singUp?size=M&terminaltype=Mobile',
		regCode:'/member/Register/retset_getAuthCode',
		checkAuthCode:'/member/Register/reset_checkAuthCode',
		setPassword:'/member/Register/reset_setPassword',
		uLogin:'/api/user/uLogin',
		checkUser :'/api/user/checkUser ',//手机号验证
		userBind :'/api/user/userBind ',//绑定手机号
		registerUser :'/api/user/registerUser ',//注册
	},
	user:{
		userinfo:'/member/Members/getMemberByToken?size=M&terminaltype=Mobile',
		saveBatch:'/member/Comments/saveBatch?size=M&terminaltype=Mobile',
		tui:'/client/SaleReturns/save?size=M&terminaltype=Mobile',
		tuiList:'/client/SaleReturns/getSaleReturnList?size=M&terminaltype=Mobile',
		tuiMain:'/client/Orders/getReturnDetail?size=M&terminaltype=Mobile',
		wuliu:'/client/Orders/lookExpress?size=M&terminaltype=Mobile',
		ok:'/client/Orders/batchConfirmTake?size=M&terminaltype=Mobile',
		closeoder:'/client/OrderCancelReason/getReasonContentList?size=M&terminaltype=Mobile',
		closeoderOn:'/client/Orders/closeOrder?size=M&terminaltype=Mobile',
		delOder:'/client/Orders/hiddenOrder?size=M&terminaltype=Mobile',
		userinfos:'/member/query/v1?access_token=q4G2bVvZy5ne6KQTUBsxFMS3aphYC7WRuwfkjIAzcd8m1tNE&size=M&terminaltype=Mobile',
		collection:'/client/ProductFavorites/getProductFavorites?size=M&terminaltype=Mobile',
		footprint:'/client/ProductViewHistorys/getHistories?size=M&terminaltype=Mobile',
		getDifBulletins:'/client/Bulletins/getDifBulletins',
		similar:'/promotion/CombinationSalesService/getRelatedProductList?size=M&terminaltype=Mobile',
		// changes:'/orders/batchuploadNew/v1?access_token=q4G2bVvZy5ne6KQTUBsxFMS3aphYC7WRuwfkjIAzcd8m1tNE&size=M&terminaltype=Mobile',
		changes:'/member/modifypassword/v1?access_token=q4G2bVvZy5ne6KQTUBsxFMS3aphYC7WRuwfkjIAzcd8m1tNE&size=M&terminaltype=Mobile',
		userchanges:'/api/score/uApi/type/save',
		// uploadImg:'/client/FileUpload/uploadAvatarWx?size=M&terminaltype=Mobile',
		uploadImg:'/member/uploadheadimg/v1?access_token=q4G2bVvZy5ne6KQTUBsxFMS3aphYC7WRuwfkjIAzcd8m1tNE',
		oder:'/client/orders/getUserOrders?size=M&terminaltype=WECHAT',
		oderPay:'/client/Orders/getDetail?size=M&terminaltype=Mobile',
		userSet:'/member/Members/save?size=M&terminaltype=Mobile&AREAID=1',
		AboutUs:'/AboutUs',
		FeedType:'/api/index/backCategory',
		WapPutFile:'/WapPutFile',
		feedback:'/api/index/feedback',
		signList:'/api/score/signDays',
		sign:'/api/score/sign',
		signi:'/api/score/weekList',
		UserInfos:'/UserInfo',
		task:'/api/score/taskList',
		deletes:'/client/ProductViewHistorys/delete',
		getUnRemarkDetail:'/client/Orders/getUnRemarkDetail',
		pays:'/cashier/acquiring',
		uploadWx:'/client/FileUpload/uploadWx',
		upload:'/client/FileUpload/upload?size=M&terminaltype=Mobile',//上传图片
		userInfo:'/api/user/userInfo',
		userSave:'/api/user/userSave',
		userEditPwd:'/api/user/userEditPwd',
		editInvoice:'/api/user/editInvoice',//添加，修改发票信息
		getInvoiceList:'/api/user/getInvoiceList',//发票列表
		getEInvoice:'/client/EInvoices/getEInvoice?size=M&terminaltype=Mobile',//发票列表
		saveEInvoice:'/client/EInvoices/saveEInvoice?size=M&terminaltype=Mobile',//开发票
		pay:'/api/pay/pay',//获取支付配置
		modifyBulletinStatus:'/client/Bulletins/modifyBulletinStatus?size=M&terminaltype=Mobile',//更新消息状态
		article:'/api/index/article',//关于我们与隐私政策
		problem:'/api/index/problem',//问题列表
		problemDetail:'/api/index/problemDetail',//问题详情
		getSignature:'/api/user/getSignature',//问题详情
		wLogin:'/api/user/wLogin',//问题详情
		uLoginWithMobile:'/api/user/uLoginWithMobile',//免密登录
		supplier:'/api/index/supplier',//商务合作
		inviteNum:'/api/user/inviteNum',//我的邀请
		inviteList:'/api/user/inviteList',//邀请排行榜
		shareUrl:'/api/user/shareUrl',//推广链接
		getSaleReturnList:'/client/SaleReturns/getSaleReturnList?size=M&terminaltype=Mobile',//售后列表
		getLogisticsCorp:'/client/Orders/getLogisticsCorp?size=M&terminaltype=Mobile',//物流公司列表
		returnGoods:'/client/SaleReturns/returnGoods?size=M&terminaltype=Mobile',//物流公司列表
		getDetail:'/member/StorageCard/getDetail?size=M&terminaltype=Mobile',//储值卡记录
		queryValidCard:"/api/score/uApi/action?action="+encodeURIComponent('mm/StorageCard/queryValidCard'),//实体卡查询
		query:"/api/score/uApi/action?action="+encodeURIComponent('mm/StorageCard/query'),//实体卡查询
		querybills:"/api/score/uApi/action?action="+encodeURIComponent('mm/StorageCard/querybills'),//实体卡查询交易记录
		querys:"/api/score/uApi/action?action="+encodeURIComponent('mm/member/query'),//会员档案查询
		pointsquery:"/api/score/uApi/action?action="+encodeURIComponent('mm/points/query'),//积分明细
		pointsrulequery:"/api/score/uApi/action?action="+encodeURIComponent('mm/pointsRule/query'),//积分规则
		// quer:"/api/score/uApi/action?action=mm/member/quer",//会员档案查询
		getMemberGiftCardsList:'/giftcard/ClientServer/getMemberGiftCardsList?size=M&terminaltype=Mobile',//礼品卡查询
		getCountGiftCard:'/giftcard/ClientServer/getCountGiftCard?size=M&terminaltype=Mobile',//礼品卡
		getOrderStyleCount:'/client/Orders/getOrderStyleCount?size=M&terminaltype=Mobile',//礼品数量
		transferGiftCard:'/giftcard/ClientServer/transferGiftCard?size=M&terminaltype=Mobile',//礼品卡转赠
		deleteCoupon:'/coupon/MemberCouponServer/deleteCoupon?size=M&terminaltype=Mobile',//礼品卡删除
		getCouponList:'/coupon/MemberCouponServer/getCouponList?size=M&terminaltype=Mobile',//获取我得卡券列表
		getCountCoupon:'/coupon/MemberCouponServer/getCountCoupon?size=M&terminaltype=Mobile',//获取我得卡券数量
		getPointDetail:'/member/MemberPoint/getPointDetail?size=M&terminaltype=Mobile',//个人中心积分记录
		getScoreSign:'/api/index/getScoreSign',//后台积分设置
		sendCoupon:'/coupon/MemberCouponServer/sendCoupon?size=M&terminaltype=Mobile',//优惠券领取
		
		
		
		

	},
	search:{//搜索
		search:'/client/Products/getProductList?size=M&terminaltype=Mobile',
		searchs:'/client/Products/getProductList?size=M',
		hot:'/client/PopularKeywords/getList?size=M&terminaltype=Mobile',
		
	},
	cate:{//分类

		cate:'/client/ProductClasses/getClasses?size=M&terminaltype=Mobile&containsPointsClasses=true',
		categoryBanner:'/api/index/categoryBanner',
		brand:'/api/brand/brand',

		

	},
	special:{//专题
		category:"/api/topic/category",
		topic:"/api/topic/topic",
		detail:"/api/topic/detail",
		comment:"/api/topic/comment",
		commentDetail:"/api/topic/commentDetail",
		categoryDetail:"/api/topic/categoryDetail",
		addComment:"/api/topic/addComment",
		commentLike:"/api/topic/commentLike",
		topicCollect:"/api/topic/topicCollect",
		categoryTopic:"/api/index/categoryTopic",//分类推荐专题
		checkCollection:"/api/user/checkCollection"//查询是否收藏专题/品牌
	},
	promotion:{
		getPricePreferentialList:"/api/admin/getPricePreferentialList"
	},
	brand:{//品牌
		brand:"/api/brand/brand",
		collection:'/api/user/collection',
		getShopsByCondition:'/client/Shops/getShopsByCondition',
		getShopById:'/client/Shops/getShopById',
	}
	
}